package com.study.springsecurity.controller;

import com.study.springsecurity.pojo.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 匿名访问接口
 */
@Slf4j
@RestController
@RequestMapping("/anonymous")
public class AnonymousController {

    /**
     * 查看项目介绍
     *
     * @return
     */
    @GetMapping("/getProjectDesc")
    public Result<String> getProjectDesc() {
        String desc = "项目内容介绍\n" +
                "\n" +
                "在spring-security-01的功能基础上实现自定义的登录登出接口、密码错误次数限制、登录验证码\n" +
                "\n" +
                "软件架构\n" +
                "\n" +
                "Spring boot、Spring security、h2数据库\n";
        return new Result<>(desc);
    }
}
